<template>
  <div class="container">
    <global-header :user = "currentUser"></global-header>
    <column-list :list = "list"></column-list>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import 'bootstrap/dist/css/bootstrap.min.css'
import ColumnList, { ColumnProps } from './components/ColumnList.vue'
import GlobalHeader, { UserProps } from './components/GlobalHeader.vue'
const currentUser: UserProps = {
  isLogin: true,
  name: 'thinker'
}
const testData: ColumnProps[] = [
  {
    id: 1,
    title: 'test1',
    description: '这是test1的专栏',
    avatar:
      ''
  },
  {
    id: 2,
    title: 'test2',
    description: '这是test2的专栏',
    avatar:
      'https://gitee.com/static/images/logo-black.svg?t=158106664'
  },
  {
    id: 3,
    title: 'test3',
    description: '这是test2的专栏',
    avatar:
      'https://gitee.com/static/images/logo-black.svg?t=158106664'
  },
  {
    id: 4,
    title: 'test4',
    description: '这是test2的专栏',
    avatar:
      'https://gitee.com/static/images/logo-black.svg?t=158106664'
  }
]
export default defineComponent({
  name: 'App',
  components: {
    ColumnList,
    GlobalHeader
  },
  setup () {
    console.log(1)
    return {
      list: testData,
      currentUser
    }
  }
})
</script>

<style>
</style>
